gate_trigger = argument0;
gate_step_total = argument1;
gate_counter = -1;
if (trigger_get(gate_trigger) == -1)
{
    gate_step = 0;
}
else
{
    gate_step = trigger_get(gate_trigger);
}
